package cn.tedu.sp09.feign;

import cn.tedu.sp01.pojo.User;
import cn.tedu.sp01.web.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "user-service")
public interface UserFeignClient {
    @GetMapping("/{getUser}")
    JsonResult<User> getUser( @PathVariable  Integer id);
    @GetMapping("/{userId}/score")
    JsonResult<?> addScore (@PathVariable Integer id , @RequestParam  Integer score);
}
